using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ExposeItem : GeneratedMessageLite<ExposeItem, ExposeItem.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ExposeItem, ExposeItem.Builder>
		{
			private bool resultIsReadOnly;
			private ExposeItem result;
			protected override ExposeItem.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ExposeItem MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ExposeItem DefaultInstanceForType
			{
				get
				{
					return ExposeItem.DefaultInstance;
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<uint> UinListList
			{
				get
				{
					return this.PrepareBuilder().uinList_;
				}
			}
			public int UinListCount
			{
				get
				{
					return this.result.UinListCount;
				}
			}
			public IPopsicleList<uint> TimeListList
			{
				get
				{
					return this.PrepareBuilder().timeList_;
				}
			}
			public int TimeListCount
			{
				get
				{
					return this.result.TimeListCount;
				}
			}
			public IPopsicleList<uint> CountListList
			{
				get
				{
					return this.PrepareBuilder().countList_;
				}
			}
			public int CountListCount
			{
				get
				{
					return this.result.CountListCount;
				}
			}
			public Builder()
			{
				this.result = ExposeItem.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ExposeItem cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ExposeItem PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ExposeItem other = this.result;
					this.result = new ExposeItem();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ExposeItem.Builder Clear()
			{
				this.result = ExposeItem.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ExposeItem.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ExposeItem.Builder(this.result);
				}
				return new ExposeItem.Builder().MergeFrom(this.result);
			}
			public override ExposeItem BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ExposeItem.Builder MergeFrom(IMessageLite other)
			{
				if (other is ExposeItem)
				{
					return this.MergeFrom((ExposeItem)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ExposeItem.Builder MergeFrom(ExposeItem other)
			{
				return this;
			}
			public override ExposeItem.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ExposeItem.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ExposeItem._exposeItemFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ExposeItem._exposeItemFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 8u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
					}
					else
					{
						switch (num3)
						{
						case 16u:
						case 18u:
							input.ReadUInt32Array(num, text, this.result.uinList_);
							continue;
						case 17u:
							break;
						default:
							switch (num3)
							{
							case 24u:
							case 26u:
								input.ReadUInt32Array(num, text, this.result.timeList_);
								continue;
							case 25u:
								break;
							default:
								switch (num3)
								{
								case 32u:
								case 34u:
									input.ReadUInt32Array(num, text, this.result.countList_);
									continue;
								}
								break;
							}
							break;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ExposeItem.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public ExposeItem.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public uint GetUinList(int index)
			{
				return this.result.GetUinList(index);
			}
			public ExposeItem.Builder SetUinList(int index, uint value)
			{
				this.PrepareBuilder();
				this.result.uinList_[index] = value;
				return this;
			}
			public ExposeItem.Builder AddUinList(uint value)
			{
				this.PrepareBuilder();
				this.result.uinList_.Add(value);
				return this;
			}
			public ExposeItem.Builder AddRangeUinList(IEnumerable<uint> values)
			{
				this.PrepareBuilder();
				this.result.uinList_.Add(values);
				return this;
			}
			public ExposeItem.Builder ClearUinList()
			{
				this.PrepareBuilder();
				this.result.uinList_.Clear();
				return this;
			}
			public uint GetTimeList(int index)
			{
				return this.result.GetTimeList(index);
			}
			public ExposeItem.Builder SetTimeList(int index, uint value)
			{
				this.PrepareBuilder();
				this.result.timeList_[index] = value;
				return this;
			}
			public ExposeItem.Builder AddTimeList(uint value)
			{
				this.PrepareBuilder();
				this.result.timeList_.Add(value);
				return this;
			}
			public ExposeItem.Builder AddRangeTimeList(IEnumerable<uint> values)
			{
				this.PrepareBuilder();
				this.result.timeList_.Add(values);
				return this;
			}
			public ExposeItem.Builder ClearTimeList()
			{
				this.PrepareBuilder();
				this.result.timeList_.Clear();
				return this;
			}
			public uint GetCountList(int index)
			{
				return this.result.GetCountList(index);
			}
			public ExposeItem.Builder SetCountList(int index, uint value)
			{
				this.PrepareBuilder();
				this.result.countList_[index] = value;
				return this;
			}
			public ExposeItem.Builder AddCountList(uint value)
			{
				this.PrepareBuilder();
				this.result.countList_.Add(value);
				return this;
			}
			public ExposeItem.Builder AddRangeCountList(IEnumerable<uint> values)
			{
				this.PrepareBuilder();
				this.result.countList_.Add(values);
				return this;
			}
			public ExposeItem.Builder ClearCountList()
			{
				this.PrepareBuilder();
				this.result.countList_.Clear();
				return this;
			}
		}
		public const int CountFieldNumber = 1;
		public const int UinListFieldNumber = 2;
		public const int TimeListFieldNumber = 3;
		public const int CountListFieldNumber = 4;
		private static readonly ExposeItem defaultInstance;
		private static readonly string[] _exposeItemFieldNames;
		private static readonly uint[] _exposeItemFieldTags;
		private bool hasCount;
		private uint count_;
		private int uinListMemoizedSerializedSize;
		private PopsicleList<uint> uinList_ = new PopsicleList<uint>();
		private int timeListMemoizedSerializedSize;
		private PopsicleList<uint> timeList_ = new PopsicleList<uint>();
		private int countListMemoizedSerializedSize;
		private PopsicleList<uint> countList_ = new PopsicleList<uint>();
		private int memoizedSerializedSize = -1;
		public static ExposeItem DefaultInstance
		{
			get
			{
				return ExposeItem.defaultInstance;
			}
		}
		public override ExposeItem DefaultInstanceForType
		{
			get
			{
				return ExposeItem.DefaultInstance;
			}
		}
		protected override ExposeItem ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<uint> UinListList
		{
			get
			{
				return Lists.AsReadOnly<uint>(this.uinList_);
			}
		}
		public int UinListCount
		{
			get
			{
				return this.uinList_.Count;
			}
		}
		public IList<uint> TimeListList
		{
			get
			{
				return Lists.AsReadOnly<uint>(this.timeList_);
			}
		}
		public int TimeListCount
		{
			get
			{
				return this.timeList_.Count;
			}
		}
		public IList<uint> CountListList
		{
			get
			{
				return Lists.AsReadOnly<uint>(this.countList_);
			}
		}
		public int CountListCount
		{
			get
			{
				return this.countList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasCount;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.Count);
				}
				int num2 = 0;
				using (IEnumerator<uint> enumerator = this.UinListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						uint current = enumerator.get_Current();
						num2 += CodedOutputStream.ComputeUInt32SizeNoTag(current);
					}
				}
				num += num2;
				if (this.uinList_.Count != 0)
				{
					num += 1 + CodedOutputStream.ComputeInt32SizeNoTag(num2);
				}
				this.uinListMemoizedSerializedSize = num2;
				int num3 = 0;
				using (IEnumerator<uint> enumerator2 = this.TimeListList.GetEnumerator())
				{
					while (enumerator2.MoveNext())
					{
						uint current2 = enumerator2.get_Current();
						num3 += CodedOutputStream.ComputeUInt32SizeNoTag(current2);
					}
				}
				num += num3;
				if (this.timeList_.Count != 0)
				{
					num += 1 + CodedOutputStream.ComputeInt32SizeNoTag(num3);
				}
				this.timeListMemoizedSerializedSize = num3;
				int num4 = 0;
				using (IEnumerator<uint> enumerator3 = this.CountListList.GetEnumerator())
				{
					while (enumerator3.MoveNext())
					{
						uint current3 = enumerator3.get_Current();
						num4 += CodedOutputStream.ComputeUInt32SizeNoTag(current3);
					}
				}
				num += num4;
				if (this.countList_.Count != 0)
				{
					num += 1 + CodedOutputStream.ComputeInt32SizeNoTag(num4);
				}
				this.countListMemoizedSerializedSize = num4;
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ExposeItem()
		{
		}
		public uint GetUinList(int index)
		{
			return this.uinList_[index];
		}
		public uint GetTimeList(int index)
		{
			return this.timeList_[index];
		}
		public uint GetCountList(int index)
		{
			return this.countList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] exposeItemFieldNames = ExposeItem._exposeItemFieldNames;
			if (this.hasCount)
			{
				output.WriteUInt32(1, exposeItemFieldNames[0], this.Count);
			}
			if (this.uinList_.Count > 0)
			{
				output.WritePackedUInt32Array(2, exposeItemFieldNames[3], this.uinListMemoizedSerializedSize, this.uinList_);
			}
			if (this.timeList_.Count > 0)
			{
				output.WritePackedUInt32Array(3, exposeItemFieldNames[2], this.timeListMemoizedSerializedSize, this.timeList_);
			}
			if (this.countList_.Count > 0)
			{
				output.WritePackedUInt32Array(4, exposeItemFieldNames[1], this.countListMemoizedSerializedSize, this.countList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<uint> enumerator = this.uinList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					uint current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			using (IEnumerator<uint> enumerator2 = this.timeList_.GetEnumerator())
			{
				while (enumerator2.MoveNext())
				{
					uint current2 = enumerator2.get_Current();
					num ^= current2.GetHashCode();
				}
			}
			using (IEnumerator<uint> enumerator3 = this.countList_.GetEnumerator())
			{
				while (enumerator3.MoveNext())
				{
					uint current3 = enumerator3.get_Current();
					num ^= current3.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			ExposeItem exposeItem = object_0 as ExposeItem;
			if (exposeItem == null)
			{
				return false;
			}
			if (this.hasCount != exposeItem.hasCount || (this.hasCount && !this.count_.Equals(exposeItem.count_)))
			{
				return false;
			}
			if (this.uinList_.Count != exposeItem.uinList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.uinList_.Count; i++)
			{
				if (!this.uinList_[i].Equals(exposeItem.uinList_[i]))
				{
					return false;
				}
			}
			if (this.timeList_.Count != exposeItem.timeList_.Count)
			{
				return false;
			}
			for (int j = 0; j < this.timeList_.Count; j++)
			{
				if (!this.timeList_[j].Equals(exposeItem.timeList_[j]))
				{
					return false;
				}
			}
			if (this.countList_.Count != exposeItem.countList_.Count)
			{
				return false;
			}
			for (int k = 0; k < this.countList_.Count; k++)
			{
				if (!this.countList_[k].Equals(exposeItem.countList_[k]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ExposeItem, ExposeItem.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<ExposeItem, ExposeItem.Builder>.PrintField<uint>("UinList", this.uinList_, writer);
			GeneratedMessageLite<ExposeItem, ExposeItem.Builder>.PrintField<uint>("TimeList", this.timeList_, writer);
			GeneratedMessageLite<ExposeItem, ExposeItem.Builder>.PrintField<uint>("CountList", this.countList_, writer);
		}
		public static ExposeItem ParseFrom(byte[] data)
		{
			return ExposeItem.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ExposeItem MakeReadOnly()
		{
			this.uinList_.MakeReadOnly();
			this.timeList_.MakeReadOnly();
			this.countList_.MakeReadOnly();
			return this;
		}
		public static ExposeItem.Builder CreateBuilder()
		{
			return new ExposeItem.Builder();
		}
		public override ExposeItem.Builder ToBuilder()
		{
			return ExposeItem.CreateBuilder(this);
		}
		public override ExposeItem.Builder CreateBuilderForType()
		{
			return new ExposeItem.Builder();
		}
		public static ExposeItem.Builder CreateBuilder(ExposeItem prototype)
		{
			return new ExposeItem.Builder(prototype);
		}
		static ExposeItem()
		{
			ExposeItem.defaultInstance = new ExposeItem().MakeReadOnly();
			ExposeItem._exposeItemFieldNames = new string[]
			{
				"Count",
				"CountList",
				"TimeList",
				"UinList"
			};
			ExposeItem._exposeItemFieldTags = new uint[]
			{
				8u,
				34u,
				26u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.ExposeItem.Descriptor, null);
		}
	}
}
